package lab02.test04;

/**
 * Created by MacBook on 2017/10/15.
 */
public class Staff {
    //属性：姓名，号码，工资，薪水增长额
    char name;
    int number;
    float salary;
    float increase;
    //行为：构造方法、获取员工姓名、获取员工号码、获取员工基本薪水、计算薪水增长额及计算增长后的工资总额
    char getName(){
        return name;
    }
    int getNumber(){
        return number;
    }
    float getSalary(){
        return salary;
    }
    float getIncrease(){
        return increase;
    }
    float sum(){
        float sumsalary=0;
        sumsalary=sumsalary*(1+increase);
        return sumsalary;
    }
    public static void main(String[] args) {

    }
}





